<?php
class PriceCategory extends EmsModelObject
{
	private $name;
	public function Name($value)
	{
	    if($value == NULL)
	        return $this->name;
	    $this->name = $value;        
	            
	}

	private $description;
	public function Description($value)
	{
	    if($value == NULL)
	        return $this->description;
	    $this->description = $value;        
	            
	}
	
	//Price
	private $price;
	public function Price($value)
	{
		if($value == NULL)
			return $this->price;
	
		if(!is_float($value))
			throw new Exception("Ticket->Price has to be int");
		if($value < 0)
			throw new Exception("Ticket->Price has to be greater or equal 0");
	
		$this->price = $value;
	}
	
		
	public function __construct($entity)
	{
		//Map entity to object
	}
	
	public function IsValid()
	{
		
	}
	
	public function SaveChanges()
	{
		//Save changes to DB
	}
	
	public static function GetType()
	{
		return __CLASS__;
	}
}
?>